package mutsumimod.cards.basic;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.DamageAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.actions.TriggerStandAction;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.util.CardStats;
import mutsumimod.util.tags.CustomTags;

public class YaMeTe extends BaseCard {
    public static final String ID = makeID(YaMeTe.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.ATTACK,
            CardRarity.BASIC,
            CardTarget.ENEMY,
            1
    );

    public YaMeTe() {
        super(ID, info);
        this.damage = this.baseDamage = 8;
        standTag=3;
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        damageMonster(m);
        this.addToBot(new TriggerStandAction(3,
                new DamageAction(m, new DamageInfo(p, this.damage, DamageInfo.DamageType.NORMAL),
                        AbstractGameAction.AttackEffect.SLASH_VERTICAL)));
    }

    @Override
    public AbstractCard makeCopy() {
        return new YaMeTe();
    }

    public void upgrade() {
        if (this.upgraded) {
            return;
        }
        this.upgradeName();
        this.upgradeDamage(3);
    }

}
